.class public Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Landroid/widget/ImageView;

.field private b:Landroid/widget/ImageView;

.field private c:Z

.field private d:Z

.field private e:Lcom/waiqin365/base/login/mainview/TitleBar;


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    return-void
.end method

.method private a()V
    .locals 6

    const v5, 0x7f02036e

    const v4, 0x7f02036d

    const/16 v3, 0x8

    const/4 v2, 0x0

    const v0, 0x7f0c0421

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/login/mainview/TitleBar;

    iput-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->e:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->e:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->e:Landroid/widget/TextView;

    const v1, 0x7f0801a0

    invoke-virtual {p0, v1}, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->e:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->a:Landroid/widget/ImageButton;

    invoke-virtual {v0, p0}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->e:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->g:Landroid/view/View;

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->e:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->i:Landroid/view/View;

    invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->e:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->h:Landroid/view/View;

    invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V

    const v0, 0x7f0c0422

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->a:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->a:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0423

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->b:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->b:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const-string/jumbo v0, "useCustomCamera"

    invoke-static {p0, v0, v2}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/content/Context;Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->c:Z

    const-string/jumbo v0, "useBigPicsize"

    invoke-static {p0, v0, v2}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/content/Context;Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->d:Z

    iget-boolean v0, p0, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->c:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->a:Landroid/widget/ImageView;

    invoke-virtual {v0, v5}, Landroid/widget/ImageView;->setImageResource(I)V

    :goto_0
    iget-boolean v0, p0, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->d:Z

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->b:Landroid/widget/ImageView;

    invoke-virtual {v0, v5}, Landroid/widget/ImageView;->setImageResource(I)V

    :goto_1
    return-void

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->a:Landroid/widget/ImageView;

    invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->b:Landroid/widget/ImageView;

    invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_1
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 5

    const v4, 0x7f02036e

    const v3, 0x7f02036d

    const/4 v0, 0x1

    const/4 v1, 0x0

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v2

    sparse-switch v2, :sswitch_data_0

    :goto_0
    return-void

    :sswitch_0
    invoke-virtual {p0}, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->back()V

    goto :goto_0

    :sswitch_1
    iget-boolean v2, p0, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->c:Z

    if-nez v2, :cond_0

    :goto_1
    iput-boolean v0, p0, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->c:Z

    const-string/jumbo v0, "useCustomCamera"

    iget-boolean v1, p0, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->c:Z

    invoke-static {p0, v0, v1}, Lcom/fiberhome/gaea/client/d/a;->a(Landroid/content/Context;Ljava/lang/String;Z)V

    iget-boolean v0, p0, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->c:Z

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->a:Landroid/widget/ImageView;

    invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_0

    :cond_0
    move v0, v1

    goto :goto_1

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->a:Landroid/widget/ImageView;

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_0

    :sswitch_2
    iget-boolean v2, p0, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->d:Z

    if-nez v2, :cond_2

    :goto_2
    iput-boolean v0, p0, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->d:Z

    const-string/jumbo v0, "useBigPicsize"

    iget-boolean v1, p0, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->d:Z

    invoke-static {p0, v0, v1}, Lcom/fiberhome/gaea/client/d/a;->a(Landroid/content/Context;Ljava/lang/String;Z)V

    iget-boolean v0, p0, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->d:Z

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->b:Landroid/widget/ImageView;

    invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_0

    :cond_2
    move v0, v1

    goto :goto_2

    :cond_3
    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->b:Landroid/widget/ImageView;

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_0

    :sswitch_data_0
    .sparse-switch
        0x7f0c0089 -> :sswitch_0
        0x7f0c008a -> :sswitch_0
        0x7f0c0422 -> :sswitch_1
        0x7f0c0423 -> :sswitch_2
    .end sparse-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 1

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    const v0, 0x7f0300ac

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->setContentView(I)V

    invoke-direct {p0}, Lcom/waiqin365/base/login/fragment/activity/SetCameraActivity;->a()V

    return-void
.end method
